<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1 {
	width: 195px;
}

.select_width {
	width: 130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<c:set var="grantCode"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td colspan="4" class="t_bar2">基本信息</td>

	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目名称：</td>
		<td colspan="3"><input id="zh_title" name="proposal/zh_title"
			label="项目名称" type="text" required
			class="input_css required maxlength:100" style="width: 725px;"
			maxlength="100"
			value="<x:out select="$xmlData/data/proposal/zh_title" />" /></td>
	</tr>
	<tr>
		<td align="right" width="25%"><span class="color_red">*</span>等级称号：</td>
		<td width="25%"><input name="proposal/designation" label="等级称号"
			type="text"  class="input_css required " maxlength="50"
			value="<x:out select="$xmlData/data/proposal/designation" />" /></td>
		<td align="right" nowrap><span class="color_red">*</span>评定日期：</td>
		<td ><c:set var="evaluation_date">
				<x:out select="$xmlData/data/proposal/evaluation_date" />
			</c:set> <cpt:date id="evaluation_date" name="proposal/evaluation_date"
				value="${evaluation_date}" className=" required date" label="评定日期"></cpt:date>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>评定机构：</td>
		<td><input name="proposal/evaluation_org" label="评定机构"
			type="text"  class="input_css required " maxlength="50" 
			value="<x:out select="$xmlData/data/proposal/evaluation_org" />" /></td>
		<td align="right"><span class="color_red">*</span>批准文号：</td>
		<td><input name="proposal/approval_number" label="批准文号"
			type="text"  class="input_css required " maxlength="50"
			value="<x:out select="$xmlData/data/proposal/approval_number" />" /></td>
		
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>财务负责人：</td>
		<td><input name="proposal/finance_name" label="财务负责人" type="text"
			 class="input_css required " maxlength="50"
			value="<x:out select="$xmlData/data/proposal/finance_name" />" /></td>
		<td align="right" nowrap><span class="color_red">*</span>联系电话：</td>
		<td><input name="proposal/finance_tel" label="财务负责人联系电话" type="text"
			 class="input_css required " maxlength="30"
			value="<x:out select="$xmlData/data/proposal/finance_tel" />" /></td>
	</tr>
	<tr>
	    <td align="right"><span class="color_red">*</span>项目联系人传真：</td>
		<td><input name="proposal/contact_psn_fax" label="项目联系人传真" type="text"
			 class="input_css required " maxlength="30"
			value="<x:out select="$xmlData/data/proposal/contact_psn_fax" />" /></td>
		<td align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td ><c:set var="submit_date">
				<x:out select="$xmlData/data/proposal/submit_date" />
			</c:set> <cpt:date id="submit_date" name="proposal/submit_date"
				value="${submit_date}" className=" required date" label="申报日期"></cpt:date>
		</td>

	</tr>
</table>

<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo5" cellspacing="1">

	<tr>
		<td colspan="4" class="t_bar2">申请项目资金情况（金额单位：万元）</td>

	</tr>
	<tr>
		<td align="right">项目类别：</td>
		<td><x:out select="$xmlData/data/proposal/grant_name" /></td>
		<td align="right">支持方式：</td>
		<td><span name="proposal/sponsor_category"><x:out
					select="$xmlData/data/proposal/sponsor_category" /></span></td>
	</tr>
	<tr>
		
		<td align="right"><span class="color_red">*</span>申请金额：</td>
		<td ><input name="proposal/sqje" id="source_apply"
			label="申请金额" type="text" 
			class="input_css  required"  style="text-align: right"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/sqje" />" /></td>
		<td align="right">资金级次：</td>
		<td><span name="proposal/fund_level">市级</span></td>
	</tr>
	<tr>
		<td align="right" nowrap>归口管理部门：</td>
		<td><span name="proposal/org_name">无锡市旅游局</span></td>
		<td align="right">管理类别：</td>
		<td ><span name="proposal/manage_category"><x:out
					select="$xmlData/data/proposal/manage_category" /></span></td>

	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目所属类别：</td>
		<td nowrap colspan="3" valign="middle">
		<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="proposal_type" label="国家级旅游商品博览会或旅游商品大赛一等奖" value="01" /><span style="vertical-align: middle;margin-left: 5px">国家级旅游商品博览会或旅游商品大赛一等奖 </span></label>
		<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="proposal_type" label="国家级旅游商品博览会或旅游商品大赛二等奖" value="02" /><span style="vertical-align: middle;margin-left: 5px">国家级旅游商品博览会或旅游商品大赛二等奖 </span></label>
		<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="proposal_type" label="国家级旅游商品博览会或旅游商品大赛三等奖" value="03" /><span style="vertical-align: middle;margin-left: 5px">国家级旅游商品博览会或旅游商品大赛三等奖</span></label>
		<input type="hidden" name="proposal/proposal_type_value" id="proposal_type_value" class="required" value="<x:out select="$xmlData/data/proposal/proposal_type_value" />" label="项目所属类别" /> 
		<input type="hidden" name="proposal/proposal_type_name" id="proposal_type_name" value="<x:out select="$xmlData/data/proposal/proposal_type_name" />" label="项目所属类别" />
		</td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="3"><c:set var="industry">
				<x:out select="$xmlData/data/proposal/industry_value" />
			</c:set> <cpt:checkbox key="industry" name="industry" repeatColumn="5"
				style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value"
			name="proposal/industry_value" class="required" value="${industry}"
			label="项目所属产业"> <input type="hidden"
			name="proposal/industry_name"
			value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
		<td align="right">功能分类：</td>
		<td colspan="3"><span name="proposal/grant_function"><x:out
					select="$xmlData/data/proposal/grant_function" /></span></td>

	</tr>
	<tr>
		<td class="t_bar2" colspan="4">申请资助依据条款</td>

	</tr>
	<tr>
		<td colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
			name="proposal/policy_foundation"><x:out
					select="$xmlData/data/proposal/policy_foundation" /></span>
		</td>
	</tr>
	<tr>
	<td rowspan="2" align="center"><span class="color_red">*</span>申请资金用途</td>
	<td><label> <input type="checkbox" class="do " id="purpose_01" style="vertical-align: middle;" name="purpose" onclick="setStatus();" label="旅游商品研发和销售" value="01" /><span style="vertical-align: middle;margin-left: 5px">旅游商品研发和销售</span></label></td>
	<td align="right"><span class="color_red" id="color1">*</span>金额（万元）：</td>
	<td><input name="proposal/amount1" id="amount1" label="申请资金用途-->旅游商品研发和销售金额" type="text" class="input_css gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/amount1" />" /></td>
	</tr>
	<tr>
	<td><label> <input type="checkbox" class="do " id="purpose_02" style="vertical-align: middle;" name="purpose" onclick="setStatus();" label="旅游人才教育培养" value="02" /><span style="vertical-align: middle;margin-left: 5px">旅游人才教育培养</span></label></td>
	<td align="right"><span class="color_red" id="color2">*</span>金额（万元）：</td>
	<td><input name="proposal/amount2" id="amount2" label="申请资金用-->旅游人才教育培养金额" type="text" class="input_css gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/amount2" />" />
	<input type="hidden" name="proposal/purpose_value" id="purpose_value" class="required" value="<x:out select="$xmlData/data/proposal/purpose_value" />" label="申请资金用途" /> 
		<input type="hidden" name="proposal/purpose_name" id="purpose_name" value="<x:out select="$xmlData/data/proposal/purpose_name" />" label="申请资金用途" />
	</td>
	</tr>
	<tr>
		<td class="t_bar2" colspan="4"><span class="color_red">*</span>项目概述：简要概括旅游企业品牌建设、以及产品特色、市场培育、产品销售业绩、企业竞争力提升、项目实施效果及社会效益等。（限500字）</td>

	</tr>
	 <tr >
      <td  colspan="4">
			<textarea rows="5" cols="150"  class="input_textarea required  maxlength:500"   name='proposal/summarize'  label="项目概述"><x:out select="$xmlData/data/proposal/summarize"/></textarea>
		   <input type='hidden' name='proposal/summarize_hidden' id='proposal/summarize_hidden' value=''>
		  </td>
      </tr>
</table>
<br/>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo3"
	cellspacing="1">
	<tr>
		<td class="t_bar2" colspan="8">人员信息</td>
		
	</tr>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
			<input  name="proposal/fzr_psncode" type="hidden" required class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/> 
		    
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		    <c:set var="psnCode"><x:out select="$xmlData/data/proposal/psn_code" /></c:set>
		    <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect">
				<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
				<cpt:personSelect key="personSelect"  addRole="3"  psnCode="${psnCode}" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize>
		</td>
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL"> 
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		</security:authorize>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
		<input name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required  class="input_css required"  onchange="synFzrMsg(1)"  maxlength="50"  value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/>
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
		<input name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" onchange="synFzrMsg(1)" onfocus="InitInput.setNumber(this,11,0,0)"  maxlength="11"  class="input_css required mobile"   value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/>
		</td>
		</security:authorize>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>

<script type="text/javascript">
$(function(){
	setStatus();
});
function setStatus(){
	if($("#purpose_01").is(":checked")){
		$("#amount1").addClass("required");
		$("#amount1").removeClass("gray");
		$("#amount1").attr("disabled",false);
		$("#color1").css("display","");
	}else{
		$("#amount1").addClass("gray");
		$("#amount1").removeClass("required");
		$("#amount1").attr("disabled",true);
		$("#amount1").val("");
		$("#color1").css("display","none");
	}
	if($("#purpose_02").is(":checked")){
		$("#amount2").addClass("required");
		$("#amount2").removeClass("gray");
		$("#amount2").attr("disabled",false);
		$("#color2").css("display","");
	}else{
		$("#amount2").addClass("gray");
		$("#amount2").removeClass("required");
		$("#amount2").attr("disabled",true);
		$("#amount2").val("");
		$("#color2").css("display","none");
	}
	if($("#purpose_03").is(":checked")){
		$("#amount3").addClass("required");
		$("#amount3").removeClass("gray");
		$("#amount3").attr("disabled",false);
		$("#color3").css("display","");
	}else{
		$("#amount3").addClass("gray");
		$("#amount3").removeClass("required");
		$("#amount3").attr("disabled",true);
		$("#amount3").val("");
		$("#color3").css("display","none");
	}
	if($("#purpose_04").is(":checked")){
		$("#amount4").addClass("required");
		$("#amount4").removeClass("gray");
		$("#amount4").attr("disabled",false);
		$("#color4").css("display","");
	}else{
		$("#amount4").addClass("gray");
		$("#amount4").removeClass("required");
		$("#amount4").attr("disabled",true);
		$("#amount4").val("");
		$("#color4").css("display","none");
	}
	if($("#purpose_05").is(":checked")){
		$("#amount5").addClass("required");
		$("#amount5").removeClass("gray");
		$("#amount5").attr("disabled",false);
		$("#color5").css("display","");
	}else{
		$("#amount5").addClass("gray");
		$("#amount5").removeClass("required");
		$("#amount5").attr("disabled",true);
		$("#amount5").val("");
		$("#color5").css("display","none");
	}
}

</script>


